<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>
    <title>登录</title>
    <link rel="stylesheet" href="layui/css/layui.css" media="all">
    <link rel="stylesheet" href="css/public.css" media="all">
</head>
<body class="loginBody layui-anim layui-anim-scale">
<form class="layui-form" action="${pageContext.request.contextPath}/login" method="post">
    <div class="login_face">
        <img src="img/bg.jpg" height="60px" class="userAvatar">
    </div>
    <div>
        <div class="loginbox-title">登录</div>
        <div class="loginbox-social">
            <div class="social-title">系统</div>
        </div>
        <div class="layui-form-item input-item">
            <label>用户名</label>
            <input type="text" placeholder="请输入用户名" autocomplete="off" id="user" name="username" class="layui-input" lay-verify="required">
        </div>
        <div class="layui-form-item input-item">
            <label>密码</label>
            <input type="password" placeholder="请输入密码" autocomplete="off" id="pass" name="password" class="layui-input"
                   lay-verify="required">
        </div>
        <div class="layui-form-item input-item" id="imgCode">
            <input type="text" placeholder="请输入验证码" name="code" autocomplete="off" id="code" class="layui-input">
            <div class="code" id="checkCode"><img src="${pageContext.request.contextPath}/randomCode"
                                                  onclick="this.src=this.src+'?'+Math.random()" title="点击切换验证码"/></div>
        </div>

        <div class="layui-text layui-font-red">
            <span class="layui-text" style="color: white">登录信息：</span>${requestScope.loginFileMsg}
        </div>
        <div class="layui-form-item">
            <input type="submit" class="layui-btn layui-block layui-btn-radius"/>
        </div>
    </div>
</form>
</body>
<script type="text/javascript" src="layui/layui.js"></script>
<script type="text/javascript" src="js/login.js"></script>
<script type="text/javascript" src="js/jquery-3.6.0.js"></script>
</html>
